<?php

namespace zhtfrontend\models\datas;

use Yii;

/**
 * This is the model class for table "{{%orders_square_paymethod}}".
 *
 * @property integer $id
 * @property integer $orders_id
 * @property string $pay_code
 * @property string $pay_name
 * @property string $amount
 * @property integer $create_at
 */
class OrdersSquarePaymethod extends \zhtfrontend\components\bases\BaseModel
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%orders_square_paymethod}}';
    }


    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['orders_id', 'create_at'], 'integer'],
            [['amount'], 'number'],
            [['pay_code', 'pay_name'], 'string', 'max' => 50],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => Yii::t('zhtfrontend', 'ID'),
            'orders_id' => Yii::t('zhtfrontend', 'Orders ID'),
            'pay_code' => Yii::t('zhtfrontend', 'Pay Code'),
            'pay_name' => Yii::t('zhtfrontend', 'Pay Name'),
            'amount' => Yii::t('zhtfrontend', 'Amount'),
            'create_at' => Yii::t('zhtfrontend', 'Create At'),
        ];
    }
}
